<?php $cm_code_set = $form->getObject() ?>
<h1><?php echo $form->isNew() ? 'New' : 'Edit '.$cm_code_set['code_set_nm']; ?> </h1>
<form action="<?php echo url_for('codesetAdmin/update'.(!$form->isNew() ? '?code_set_nm='.$cm_code_set['code_set_nm'] : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>">
  <table>
    <tfoot>
      <tr>
        <td colspan="2">
          &nbsp;<a href="<?php echo url_for('codesetAdmin/index') ?>">Cancel</a>
          <?php if (!$form->isNew()): ?>
            &nbsp;<?php echo link_to('Delete', 'codesetAdmin/delete?code_set_nm='.$cm_code_set['code_set_nm'], array('post' => true, 'confirm' => 'Are you sure?')) ?>
          <?php endif; ?>
          <input type="submit" value="Save" />
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form->renderGlobalErrors() ?>
      <tr>
        <th><label for="$cm_code_set_nm">Code Set Name</label></th>
        <td>
          <?php echo $form['code_set_nm']->renderError() ?>
          <?php echo $form['code_set_nm'] ?>
          <?php if (!$form->isNew()): ?>
            <b><?php echo $cm_code_set['code_set_nm']; ?></b>
          <?php endif; ?>
          
        </td>
      </tr>
      <tr>
        <th><label for="$cm_code_set_status_cd">Status cd</label></th>
        <td>
          <?php echo $form['status_cd']->renderError() ?>
          <?php echo $form['status_cd'] ?>
        </td>
      </tr>
      <tr>
        <th><label for="$cm_code_set_class_cd">Class cd</label></th>
        <td>
          <?php echo $form['class_cd']->renderError() ?>
          <?php echo $form['class_cd'] ?>
        </td>
      </tr>
      <tr>
        <th><label for="$cm_code_set_effective_from_time">Effective from time</label></th>
        <td>
          <?php echo $form['effective_from_time']->renderError() ?>
          <?php echo $form['effective_from_time'] ?>
        </td>
      </tr>
      <tr>
        <th><label for="$cm_code_set_effective_to_time">Effective to time</label></th>
        <td>
          <?php echo $form['effective_to_time']->renderError() ?>
          <?php echo $form['effective_to_time'] ?>
        </td>
      </tr>
    </tbody>
  </table>
</form>
